<?php

return [
    'class' => 'yii\db\Connection',
    'dsn' => $_SERVER['DB_DSN'],
    'username' => $_SERVER['DB_USERNAME'],
    'password' => $_SERVER['DB_PASSWORD'],
    'charset' => $_SERVER['DB_CHARSET'],
    'tablePrefix' => $_SERVER['DB_TABLE_PREFIX'],
//     Schema cache options (for production environment)
    'enableSchemaCache' => $_SERVER['DB_ENABLE_SCHEMA_CACHE'],
    'schemaCacheDuration' => 60,
    'schemaCache' => 'cache',
];
